﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildBossCopyInfo extends IMessageBase
    {
        public var guildId:SEntityId;
        public var color:int;
        public var ringBegin:int;
        public var ringEnd:int;
        public const _type:int = 5074;
        public static var _regist:SGuildBossCopyInfo = new SGuildBossCopyInfo(true);

        public function SGuildBossCopyInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildBossCopyInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.guildId.__write(param1);
            param1.writeInt(this.color);
            param1.writeInt(this.ringBegin);
            param1.writeInt(this.ringEnd);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.guildId = new SEntityId();
            this.guildId.__read(param1);
            this.color = param1.readInt();
            this.ringBegin = param1.readInt();
            this.ringEnd = param1.readInt();
            return;
        }// end function

    }
}
